<?php

namespace app\superadmin\model;
use think\Model;

class OrderRefund extends Model{
    
    protected $autoWriteTimestamp = 'timestamp';

    protected $dateFormat = "Y-m-d H:i:s";
    
    protected $table = 'yup_order_refund';
    
    protected $type = [
        'request'    =>  'array',
        'notify'     =>  'array',
        'response'  =>  'array',
    ];
    
    public function order(){
        return $this->belongsTo(Order::class, 'order_id', 'id');
    }
}